home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 342_01.zip / DIOFNC07.C < prev    next >
C/C++ Source or Header  |  1993-04-03  |  1KB  |  44 lines

  1. /*-
  2.  *  ----------------------------------------------------------------------
  3.  *  File        :   DIOFNC07.C
  4.  *  Creator     :   Blake Miller
  5.  *  Version     :   01.01.00        February 1991
  6.  *  Language    :   Microsoft C     Version 5.1
  7.  *  Purpose     :   Intel 8255 Compatible Digital IO Functions
  8.  *                  Write All Bytes
  9.  *  ----------------------------------------------------------------------
  10.  *  Revision History:
  11.  *  022891 BVM  :   Change int to short.
  12.  *  070490 BVM  :   Creation
  13.  *  ----------------------------------------------------------------------
  14.  */
  15.  
  16. #define     DIOFNC07_C_DEFINED
  17. #include    "DIOLIB.H"
  18. #undef      DIOFNC07_C_DEFINED
  19.  
  20. void dio_dump_bytes (DIODAT *data);
  21.  
  22. /*- DIO : Dump Bytes -------------------------**
  23.  *  Write all of the bytes from the data area to the 8255.
  24.  *  Passed:
  25.  *      pointer :   DIODAT
  26.  *  Returns:
  27.  *      nothing
  28.  */
  29. void dio_dump_bytes (DIODAT *data)
  30.     {
  31.     short   port;   /* counter  */
  32.  
  33.     for ( port = 0; port < DIO_MAXCH; port++ ){
  34.         dio_bput ( data->base + port, data->pdat[port] );
  35.         }
  36.     data->stat = DIO_ST_OK;
  37.     }
  38.  
  39. /*-
  40.  *  ----------------------------------------------------------------------
  41.  *  END DIOFNC07.C Source File
  42.  *  ----------------------------------------------------------------------
  43.  */
  44.